<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>删除图书</title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<center>
	<%if(request.getSession().getAttribute("user") != null) { %>

	
	<div class="container" id="iddelele">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<form action="/delete/book" method="post" class="form-horizontal" role="form">
					<div class="form-group">
						 <label for="inputEmail3" class="col-sm-2 control-label">请输入编号</label>
						<div class="col-sm-10">
							<input class="form-control" id="inputEmail3" type="text" name="id" />
							<input type="hidden" value="id" name="choice">
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							 <button type="submit" class="btn btn-default">删除</button>
						</div>
					</div>
				</form>
				<button class="btn btn-default" id="back1">返回</button>
				<script>
					document.getElementById("back1").addEventListener("click", function () {
						window.location.href = "/index.jsp";
					});
				</script>
			</div>
		</div>
	</div>

	
<%--	<div class="container" id="namedelele">--%>
<%--		<div class="row clearfix">--%>
<%--			<div class="col-md-12 column">--%>
<%--				<form action="deletebookServlet" method="post" class="form-horizontal" role="form">--%>
<%--					<div class="form-group">--%>
<%--						 <label for="inputEmail3" class="col-sm-2 control-label">请输入书名</label>--%>
<%--						<div class="col-sm-10">--%>
<%--							<input class="form-control" id="inputName" type="text" name="bookname" />--%>
<%--							<input type="hidden" value="name" name="choice">--%>
<%--						</div>--%>
<%--					</div>--%>
<%--					<div class="form-group">--%>
<%--						<div class="col-sm-offset-2 col-sm-10">--%>
<%--							 <button type="submit" class="btn btn-default">删除</button>--%>
<%--						</div>--%>
<%--					</div>--%>
<%--				</form>--%>
<%--				<button class="btn btn-default" id="back2">返回</button>--%>
<%--			</div>--%>
<%--		</div>--%>
<%--	</div>--%>
	<%} else {%>
	<h1>请登录后再访问此页面</h1>
	<a href="loginOut"><i>返回登陆</i></a>
	<%} %>
	<font color="red" size="2"> ${msg }</font>
</center>
<script src="js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/deletebook.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>